﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BolaoDNA.DomainModel
{
    public class Equipe
    {
        virtual public Int32 ID { get; set; }
        virtual public String Nome { get; set; }

        virtual public IList<Competicao> Competicoes { get; set; }

        public override bool Equals(object obj)
        {
            Equipe equipe2 = obj as Equipe;
            return equipe2 != null && this.ID == equipe2.ID;
        }

        public override int GetHashCode()
        {
            return this.ID.GetHashCode();
        }

        public override string ToString()
        {
            return this.Nome;
        }
    }
}
